package com.tianya.scheduled.exception;

/**
 * 自定义异常
 *
 * ClassName: CustomException <br/>
 * Description: <br/>
 * date: 2021/5/21 22:07<br/>
 *
 * @author tianya<br />
 */
public class CustomException extends RuntimeException {

    /**
     * 错误码
     */
    private Integer code;

    public CustomException(String msg){
        super(msg);
        this.code = 0;
    }

    public CustomException(Integer code, String msg){
        super(msg);
        this.code = code;
    }
}
